package io.github.cunyu1943;

import java.util.StringJoiner;

/**
 * Created with IntelliJ IDEA.
 *
 * @Package : io.github.cunyu1943
 * @ClassName : StringJoinerConstructorTest.java
 * @CreateTime : 2022/11/30 22:19
 * @Version : 1.0
 * @Author : 村雨遥
 * @Email : 747731461@qq.com
 * @公众号 : 村雨遥
 * @Website : https://cunyu1943.github.io/JavaPark
 * @Description : StringJoiner 构造器
 */
public class StringJoinerConstructorTest {
    public static void main(String[] args) {
        StringJoiner stringJoiner = new StringJoiner("*");
        stringJoiner.add("123");
        stringJoiner.add("13");

        System.out.println(stringJoiner);

        StringJoiner stringJoiner1 = new StringJoiner("*", "[", "]");
        stringJoiner1.add("123");
        stringJoiner1.add("13");

        System.out.println(stringJoiner1);
    }
}
